package com.ethink.order.common.mapper;

import com.ethink.order.api.info.TocSaleReturnImportLogDetailInfo;
import com.ethink.order.api.request.TocSaleReturnImportLogResultSettleRequest;
import com.ethink.order.common.entity.TocSaleReturnImportLogDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * TOC销售退单导入日志明细 Mapper接口
 *
 * @author default
 * @date 2022-12-16
 */
@Mapper
public interface TocSaleReturnImportLogDetailMapper extends MyBaseMapper<TocSaleReturnImportLogDetail> {
    List<TocSaleReturnImportLogDetailInfo> selectListByLogId(Long id);

    List<TocSaleReturnImportLogDetailInfo> queryDetailByShopOrderNoList(@Param("list") List<String> shopOrderNoList);

    List<TocSaleReturnImportLogDetailInfo> selectListByChannelAndShopNo(@Param("channel") String saleSubChannel,@Param("list") List<String> shopOrderNoList);

    void settleOrder(@Param("request") TocSaleReturnImportLogResultSettleRequest settleRequest);
}